package com.wanxi.web.service.shop.impl;


import com.wanxi.shop.api.feign.ShopFeignClient;
import com.wanxi.shop.api.query.NearShopQuery;
import com.wanxi.shop.api.result.CommonResult;
import com.wanxi.shop.api.vo.ShopUpdateInVo;
import com.wanxi.web.service.shop.ShopSelfWebService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ShopSelfWebServiceImpl implements ShopSelfWebService {
    @Resource
    private ShopFeignClient shopFeignClient;

    @Override
    public CommonResult shopFindShopById(Long id) {
        return shopFeignClient.findShopById(id);
    }

    @Override
    public CommonResult shopUpdateShop(ShopUpdateInVo shopUpdateInVo) {
        return shopFeignClient.updateShop(shopUpdateInVo);
    }

    @Override
    public CommonResult findNearShop(NearShopQuery nearShopQuery) {
        return shopFeignClient.findNearShop(nearShopQuery);
    }
}
